package com.zdp.contentcenter.feignclient.fallback;

import com.zdp.contentcenter.domain.dto.user.UserDTO;
import com.zdp.contentcenter.feignclient.UserCenterFeignClient;
import org.springframework.stereotype.Component;

/**
 * @author sesshomaru
 * @date 2020/9/20 18:17
 */

/**
 * 这种方式无法打印错误日志
 */
@Component
public class UserCenterFeignClientFallback implements UserCenterFeignClient {

    @Override
    public UserDTO findById(Integer id) {
        UserDTO userDTO = new UserDTO();
        userDTO.setWxNickname("一个默认用户");
        return userDTO;
    }
}
